// Copyright 2018-2020 Polyaxon, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*
 * Polyaxon SDKs and REST API specification.
 * Polyaxon SDKs and REST API specification.
 *
 * The version of the OpenAPI document: 1.3.4
 * Contact: contact@polyaxon.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * V1PolyaxonSidecarContainer
 */

public class V1PolyaxonSidecarContainer {
  public static final String SERIALIZED_NAME_IMAGE = "image";
  @SerializedName(SERIALIZED_NAME_IMAGE)
  private String image;

  public static final String SERIALIZED_NAME_IMAGE_TAG = "image_tag";
  @SerializedName(SERIALIZED_NAME_IMAGE_TAG)
  private String imageTag;

  public static final String SERIALIZED_NAME_IMAGE_PULL_POLICY = "image_pull_policy";
  @SerializedName(SERIALIZED_NAME_IMAGE_PULL_POLICY)
  private String imagePullPolicy;

  public static final String SERIALIZED_NAME_SLEEP_INTERVAL = "sleep_interval";
  @SerializedName(SERIALIZED_NAME_SLEEP_INTERVAL)
  private Integer sleepInterval;

  public static final String SERIALIZED_NAME_SYNC_INTERVAL = "sync_interval";
  @SerializedName(SERIALIZED_NAME_SYNC_INTERVAL)
  private Integer syncInterval;

  public static final String SERIALIZED_NAME_MONITOR_LOGS = "monitor_logs";
  @SerializedName(SERIALIZED_NAME_MONITOR_LOGS)
  private Boolean monitorLogs;

  public static final String SERIALIZED_NAME_RESOURCES = "resources";
  @SerializedName(SERIALIZED_NAME_RESOURCES)
  private Object resources;


  public V1PolyaxonSidecarContainer image(String image) {
    
    this.image = image;
    return this;
  }

   /**
   * Get image
   * @return image
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getImage() {
    return image;
  }


  public void setImage(String image) {
    this.image = image;
  }


  public V1PolyaxonSidecarContainer imageTag(String imageTag) {
    
    this.imageTag = imageTag;
    return this;
  }

   /**
   * Get imageTag
   * @return imageTag
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getImageTag() {
    return imageTag;
  }


  public void setImageTag(String imageTag) {
    this.imageTag = imageTag;
  }


  public V1PolyaxonSidecarContainer imagePullPolicy(String imagePullPolicy) {
    
    this.imagePullPolicy = imagePullPolicy;
    return this;
  }

   /**
   * Get imagePullPolicy
   * @return imagePullPolicy
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getImagePullPolicy() {
    return imagePullPolicy;
  }


  public void setImagePullPolicy(String imagePullPolicy) {
    this.imagePullPolicy = imagePullPolicy;
  }


  public V1PolyaxonSidecarContainer sleepInterval(Integer sleepInterval) {
    
    this.sleepInterval = sleepInterval;
    return this;
  }

   /**
   * Get sleepInterval
   * @return sleepInterval
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getSleepInterval() {
    return sleepInterval;
  }


  public void setSleepInterval(Integer sleepInterval) {
    this.sleepInterval = sleepInterval;
  }


  public V1PolyaxonSidecarContainer syncInterval(Integer syncInterval) {
    
    this.syncInterval = syncInterval;
    return this;
  }

   /**
   * Get syncInterval
   * @return syncInterval
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getSyncInterval() {
    return syncInterval;
  }


  public void setSyncInterval(Integer syncInterval) {
    this.syncInterval = syncInterval;
  }


  public V1PolyaxonSidecarContainer monitorLogs(Boolean monitorLogs) {
    
    this.monitorLogs = monitorLogs;
    return this;
  }

   /**
   * Get monitorLogs
   * @return monitorLogs
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Boolean getMonitorLogs() {
    return monitorLogs;
  }


  public void setMonitorLogs(Boolean monitorLogs) {
    this.monitorLogs = monitorLogs;
  }


  public V1PolyaxonSidecarContainer resources(Object resources) {
    
    this.resources = resources;
    return this;
  }

   /**
   * Get resources
   * @return resources
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Object getResources() {
    return resources;
  }


  public void setResources(Object resources) {
    this.resources = resources;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1PolyaxonSidecarContainer v1PolyaxonSidecarContainer = (V1PolyaxonSidecarContainer) o;
    return Objects.equals(this.image, v1PolyaxonSidecarContainer.image) &&
        Objects.equals(this.imageTag, v1PolyaxonSidecarContainer.imageTag) &&
        Objects.equals(this.imagePullPolicy, v1PolyaxonSidecarContainer.imagePullPolicy) &&
        Objects.equals(this.sleepInterval, v1PolyaxonSidecarContainer.sleepInterval) &&
        Objects.equals(this.syncInterval, v1PolyaxonSidecarContainer.syncInterval) &&
        Objects.equals(this.monitorLogs, v1PolyaxonSidecarContainer.monitorLogs) &&
        Objects.equals(this.resources, v1PolyaxonSidecarContainer.resources);
  }

  @Override
  public int hashCode() {
    return Objects.hash(image, imageTag, imagePullPolicy, sleepInterval, syncInterval, monitorLogs, resources);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1PolyaxonSidecarContainer {\n");
    sb.append("    image: ").append(toIndentedString(image)).append("\n");
    sb.append("    imageTag: ").append(toIndentedString(imageTag)).append("\n");
    sb.append("    imagePullPolicy: ").append(toIndentedString(imagePullPolicy)).append("\n");
    sb.append("    sleepInterval: ").append(toIndentedString(sleepInterval)).append("\n");
    sb.append("    syncInterval: ").append(toIndentedString(syncInterval)).append("\n");
    sb.append("    monitorLogs: ").append(toIndentedString(monitorLogs)).append("\n");
    sb.append("    resources: ").append(toIndentedString(resources)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

